#include<bits/stdc++.h>
using namespace std;
typedef double db;
const db eps=1e-3;
db a,b,c,d;
int cnt=3;
db f(db x)
{
	return a*x*x*x+b*x*x+c*x+d;
}
int main()
{
	scanf("%lf%lf%lf%lf",&a,&b,&c,&d);
	for(int i=-100;i<100;++i)
	{
		if(!cnt)break;
		if(f(i)==0)
			printf("%.2lf ",(db)i),--cnt;
		else if(f(i)*f(i+1)<0)
		{
			db l=i,r=i+1,mid;
			while(r-l>=eps)
			{
				mid=(l+r)/2.0;
				if(f(l)*f(mid)<0)r=mid;
				else l=mid;
			}
			printf("%.2lf ",mid),--cnt;
		}
	}
	puts("");
	return 0;
}
